Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fork with significant modifications #4

Open
wants to merge 51 commits into
base: master
Choose a base branch
from

Conversation

Jonplussed
Copy link

Hello! I don't know if you're actively developing this now, but if you are, I would love to know your thoughts on modifications in my fork. I'm a rookie at contributing to FOSS— in the future I'll definitely separate the changes.

The major changes present are:

  • cleaning up the parser/generator Haskell code
  • splitting the output into separate modules for easier use
  • requiring the WebGLContext as the first argument for every WebGL method
  • packaging the PureScript output with the generator (as it seems this should be a standalone PureScript library)

I know this includes major breaking changes, but if any of these sound useful to you I'd be happy to collaborate on merging them. Otherwise I have a slightly different direction I'd like to take the WebGL library that sits upon the raw output— a Graphics.WebGL.Unsafe that provides type-safety (but not error-handling) and finally a WebGLT monad transformer that passes the context to each function and wraps error handling for each method call.

Thanks!

@jutaro
Copy link
Collaborator

jutaro commented Jun 10, 2015

Hi Jonathan,

sorry for the late answer. (I'm not always that bad). We still develop this
and try to use it for a project. Our main
concern in the moment is performance. Purescript is slow in some basic
functionality, and when you try to work
with webgl it is common that you need a performant solution.

So I see that you want to make thinks better, but if the performance gets
worse I will in no way follow it.

So if you e.g. can make the webgl-examples examples run on the changed
implementation we could compare.

Generally I'm happy someone contributes, so I hope we find a way to join
forces.

Best regards
Jürgen

2015-05-27 22:34 GMT+02:00 Jonathan Childress [email protected]:

Hello! I don't know if you're actively developing this now, but if you
are, I would love to know your thoughts on modifications in my fork. I'm a
rookie at contributing to FOSS— in the future I'll definitely separate the
changes.

The major changes present are:

  • cleaning up the parser/generator Haskell code
  • splitting the output into separate modules for easier use
  • requiring the WebGLContext as the first argument for every WebGL
    method
  • packaging the PureScript output with the generator (as it seems this
    should be a standalone PureScript library)

I know this includes major breaking changes, but if any of these sound
useful to you I'd be happy to collaborate on merging them. Otherwise I have
a slightly different direction I'd like to take the WebGL library that sits
upon the raw output— a Graphics.WebGL.Unsafe that provides type-safety
(but not error-handling) and finally a WebGLT monad transformer that
passes the context to each function and wraps error handling for each
method call.

Thanks!

You can view, comment on, or merge this pull request online at:

#4
Commit Summary

  • cleanup .cabal and Main.hs files
  • Git should ignore cabal sandboxes
  • clean up AST
  • cleanup IDL parser (needs testing)
  • fix redundancy and src file
  • WIP
  • first pass at cleaning PrettyPrinter works
  • ugly printer but good output
  • now printing impl functions rather than nested
  • correctly print array types
  • remove typedef from constants
  • arbitrary cleanup
  • additional cleanup
  • rm accidentally-committed test file
  • remove unused isUsableFunction
  • rearrange as both cabal and bower packages
  • add more package files
  • added a basic README
  • significant cleanup
  • additional cleanup
  • minor edits
  • add typesig to constants for doc generation
  • split output in multiple files for easier use
  • correctly print function export list
  • export non-impl functions for easier usage
  • print WebGL enums as camelCase
  • significant README edits
  • bump version to 0.2.0

File Changes

Patch Links:


Reply to this email directly or view it on GitHub
#4.

@Jonplussed
Copy link
Author

Thanks for replying! Do you have any examples of some of the performance bottlenecks you've experienced? I'd love to create some test benchmarks to see what impact any changes have had.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants